#include <iostream>
#include <sstream>
#include <string>
using namespace std;
int main()
{
    string s;
    while(getline(cin,s))
    {
        istringstream iss(s);
        int sum = 0;
        int i;
        while(iss>>i)
            sum+=i;

        cout << sum << endl;
    }

    return 0;

}